<template>
    <el-card shadow="hover" style="height: 300px; margin-top: 10px; width: 100%; ">
        <el-form ref="dialogForm" :model="form" :rules="rules" :disabled="mode == 'show'" label-width="100px"
            label-position="left">
            <el-form-item label="应用版本" prop="meta">
                <el-radio-group v-model="form">
                    <el-radio-button :label="0">移动H5应用</el-radio-button>
                    <el-radio-button :label="1">移动APP应用</el-radio-button>
                    <el-radio-button :label="2">PCH5应用</el-radio-button>
                </el-radio-group>
            </el-form-item>

            <el-form-item label="应用版本" prop="roleName">
                <el-input v-model="form" clearable></el-input>
            </el-form-item>
            <el-form-item label="应用包类型" prop="roleCode">
                <el-button type="primary" :loading="isSaveing">主 包</el-button>
                <el-button type="primary" :loading="isSaveing">分 包</el-button>
            </el-form-item>

             <el-form-item label="应用包管理" prop="roleName">
                <el-input v-model="form" clearable></el-input>
            </el-form-item>

        </el-form>
    </el-card>

    <el-footer>
        <div style="display: flex;justify-content: right;width: 100%;">
            <el-button style="margin-left: 30px" @click="visible = false">取 消</el-button>
        <el-button v-if="mode != 'show'" type="primary" :loading="isSaveing" @click="submit()">保 存</el-button>
        </div>
    </el-footer>



    <!-- <div
        style="width: 100%; height: 70px; position: absolute; bottom: 0;right: 0; border-top: 0px solid #e8e8e8; padding-top: 10px">

    </div> -->











</template>
<script>
export default {
    // emits: ['success', 'closed'],

    data() {
        return {
            // mode: 'add',

        }
    },
    mounted() { },
    methods: {
        //显示
        // open(mode = 'add') {
        // 	this.mode = mode
        // 	this.visible = true
        // 	return this
        // },
        //表单提交方法
        submit() {
            // this.$refs.dialogForm.validate(async (valid) => {
            // 	if (valid) {
            // 		this.isSaveing = true
            // 		var res = await this.$API.basic.app.add.post({ data: this.form })
            // 		this.isSaveing = false
            // 		if (res && res.code == 0) {
            // 			this.$emit('success', this.form, this.mode)
            // 			this.visible = false
            // 			this.$emit('guanbi')
            // 			this.$message.success('操作成功')
            // 		}
            // 	}
            // })
        }
    }
}
</script>

<style></style>